import request from '@/utils/request'

// 查询学生作业分数列表
export function listStudent_answer(query) {
  return request({
    url: '/auto/student_answer/list',
    method: 'get',
    params: query
  })
}

// 查询学生作业分数详细
export function getStudent_answer(id) {
  return request({
    url: '/auto/student_answer/' + id,
    method: 'get'
  })
}

// 新增学生作业分数
export function addStudent_answer(data) {
  return request({
    url: '/auto/student_answer',
    method: 'post',
    data: data
  })
}

// 修改学生作业分数
export function updateStudent_answer(data) {
  return request({
    url: '/auto/student_answer',
    method: 'put',
    data: data
  })
}

// 删除学生作业分数
export function delStudent_answer(id) {
  return request({
    url: '/auto/student_answer/' + id,
    method: 'delete'
  })
}

// 导出学生作业分数
export function exportStudent_answer(query) {
  return request({
    url: '/auto/student_answer/export',
    method: 'get',
    params: query
  })
}